package com.zp.business.mapper.outpFees;

import com.zp.business.entity.outpFees.OutpFeesDetail;
import com.zp.business.entity.outpFees.vo.OutpFeesDetailVo;
import com.zp.common.myBatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 门诊收费记录明细Mapper接口
 *
 * @author zhang peng
 * @ date 2024-04-12
 */
@Repository
public interface OutpFeesDetailMapper extends BaseMapperPlus<OutpFeesDetailMapper, OutpFeesDetail, OutpFeesDetailVo> {

    Integer getFeesNoGroupCount(@Param("feesNo") String feesNo, @Param("chargeFlags") List<String> chargeFlags, @Param("orgId") String orgId);

    Integer getApplyNoGroupCount(@Param("applyNo") String feesNo, @Param("chargeFlags") List<String> chargeFlags, @Param("orgId") String orgId);

    List<OutpFeesDetailVo> getRefundDetailGroupBy (@Param("orgId") String orgId, @Param("chargeFlag") String chargeFlag,
                                                   @Param("outpFeesMasterId") String outpFeesMasterId);

}
